﻿using System.Windows.Forms;
using JetBrains.ActionManagement;
using JetBrains.Application.DataContext;
using JetBrains.UI.ActionsRevised;

namespace ReSharePoint.Common.Actions
{
    [Action("About", Id = 11002)]
    public class AboutAction : IExecutableAction
    {
        public bool Update(IDataContext context, ActionPresentation presentation, DelegateUpdate nextUpdate)
        {
            // return true or false to enable/disable this action
            return true;
        }

        public void Execute(IDataContext context, DelegateExecute nextExecute)
        {
            MessageBox.Show(
              "Essential tool to ensure SharePoint code quality.\r\nVisit our site http://docs.subpointsolutions.com/",
              "About reSP Plugin",
              MessageBoxButtons.OK,
              MessageBoxIcon.Information);
        }
    }
}